package org.example.controller;

import org.example.api.StockService;
import org.example.domain.vo.InnerMarketDomainVo;
import org.example.utils.Response;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StockController implements StockService {

    private final org.example.service.StockService stockService;

    public StockController(org.example.service.StockService stockService) {
        this.stockService = stockService;
    }

    public Response<List<InnerMarketDomainVo>> getInnerMarketInfo() {
        return stockService.getInnerMarketInfo();
    }
}
